]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
5 years agostyle: Remove workspace padding
Georges Basile Stavracas Neto [Fri, 11 Dec 2020 17:58:30 +0000 (14:58 -0300)]
style: Remove workspace padding

It makes the background jump when animating from the session.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1599>

5 years agoworkspace: Clip background
Florian Müllner [Fri, 26 Jun 2020 20:41:22 +0000 (22:41 +0200)]
workspace: Clip background

So that windows don't overflow the workspace background.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1599>

5 years agooverview: Move background to Workspace
Georges Basile Stavracas Neto [Mon, 1 Jun 2020 22:24:17 +0000 (19:24 -0300)]
overview: Move background to Workspace

Move the background to the Workspace class by introducing a new container
called WorkspaceBackground, which handles clipping the background to the
workarea.

Move the click action from WorkspaceDisplay into each workspace.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1599>

5 years agobackground: Add option to not use background content size
Georges Basile Stavracas Neto [Tue, 9 Jun 2020 21:18:21 +0000 (18:18 -0300)]
background: Add option to not use background content size

Will be used by next commit to draw workspaces at a different size of the
background itself.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1599>

5 years agobackground: Trivial style cleanup
Georges Basile Stavracas Neto [Tue, 9 Jun 2020 21:18:00 +0000 (18:18 -0300)]
background: Trivial style cleanup

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1599>

5 years agoworkspaceThumbnails: Expand workspaces before scale-in animation
Florian Müllner [Fri, 29 Jan 2021 15:25:28 +0000 (16:25 +0100)]
workspaceThumbnails: Expand workspaces before scale-in animation

When the original animation was implemented, workspaces would only
ever be added at the end. We therefore got away with not having a
separate EXPANDING stage corresponding to the existing COLLAPSING
one when animating out.

Since support for creating in-between workspaces via DND was added,
this is no longer the case. And now that the thumbnails are centered,
the jump is quite noticeable.

Address this by adding new transitional states, so that we can
expand new thumbnails before scaling them in.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1609>

5 years agooverviewControls: Remove intermediate box
Florian Müllner [Fri, 29 Jan 2021 14:38:08 +0000 (15:38 +0100)]
overviewControls: Remove intermediate box

Now that the workspace switcher moved into the view selector, the
box only holds a single child. Cut out the middle man and add that
directly to the parent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1609>

5 years agotheme: Adjust workspaces thumbnails visuals
Georges Basile Stavracas Neto [Tue, 26 Jan 2021 00:11:28 +0000 (21:11 -0300)]
theme: Adjust workspaces thumbnails visuals

Remove the borders, and make each thumbnail have a background color
that matches other elements like the Dash.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspaceThumbnail: Scale workspaces in and out
Georges Basile Stavracas Neto [Wed, 27 Jan 2021 16:28:36 +0000 (13:28 -0300)]
workspaceThumbnail: Scale workspaces in and out

Make the slide property control the workspace scale, so that new workspaces
scale up, and destroyed workspaces scale down. The scale is done horizontally,
and only slightly vertically, as per design direction.

Rework the state tracking mechanism to remove the COLLAPSING state, since there's
no split between sliding out and collapsing anymore. Also remove the corresponding
'collapse-fraction' property from WorkspaceThumbnail.

Make ThumbnailsBox.vfunc_get_preferred_width() consider the slide-position property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspaceThumbnail: Use current number of workspaces for sizes
Georges Basile Stavracas Neto [Wed, 27 Jan 2021 16:29:53 +0000 (13:29 -0300)]
workspaceThumbnail: Use current number of workspaces for sizes

There are situations where MetaWorkspaceManager and ThumbnailsBox disagree
on the number of workspaces, for example when animating them out. It's more
important to follow the visible number of workspaces while they're updated.

Make vfunc_get_preferred_width() and vfunc_get_preferred_height() use the
current number of workspace thumbnails to calculate their sizes, instead of
MetaWorkspaceManager's n-thumbnails property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspaceThumbnail/thumbnailsBox: Set pivot point
Georges Basile Stavracas Neto [Wed, 27 Jan 2021 15:37:48 +0000 (12:37 -0300)]
workspaceThumbnail/thumbnailsBox: Set pivot point

Set the pivot point at the center of the ThumbnailsBox so that scaling
in and out looks better.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspaceThumbnail: Remove wallpaper
Georges Basile Stavracas Neto [Tue, 26 Jan 2021 00:10:44 +0000 (21:10 -0300)]
workspaceThumbnail: Remove wallpaper

They'll be replaced by a stylized background color to make them look
symbolic.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspaceThumbnail: Reduce maximum scale to 5%
Georges Basile Stavracas Neto [Tue, 26 Jan 2021 00:09:53 +0000 (21:09 -0300)]
workspaceThumbnail: Reduce maximum scale to 5%

As per design direction, reduce the maximum workspaces thumbnails to 5% of the
primary monitor size.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspaceThumbnail: Allocate final thumbnail sizes
Georges Basile Stavracas Neto [Mon, 25 Jan 2021 23:59:46 +0000 (20:59 -0300)]
workspaceThumbnail: Allocate final thumbnail sizes

ThumbnailsBox currently allocates each workspace thumbnail using their
porthole size, and scales them down using scale-x and scale-y. This is
slightly problematic since it doesn't allow for properly styling these
thumbnails through CSS.

Rework ThumbnailsBox to allocate workspace thumbnails at their actual
sizes, and scale down the '_contents' actor inside WorkspaceThumbnail.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspaceThumbnail: Make it horizontal
Georges Basile Stavracas Neto [Mon, 25 Jan 2021 23:52:17 +0000 (20:52 -0300)]
workspaceThumbnail: Make it horizontal

Allocate workspace thumbnails horizontally. This requires introducing code
to handle the RTL direction. Do a small rewrite of the DnD hover method to
be simultaneously simpler and easier to follow, and work correctly on RTL.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agooverviewControls: Simplify DashFader
Georges Basile Stavracas Neto [Fri, 11 Dec 2020 12:59:46 +0000 (09:59 -0300)]
overviewControls: Simplify DashFader

Merge FaderControl and DashFader, since it's the only subclass, and
remove all overview connections that aren't useful for it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agooverviewControls: Move workspaces thumbnails to ViewSelector
Georges Basile Stavracas Neto [Mon, 25 Jan 2021 20:50:59 +0000 (17:50 -0300)]
overviewControls: Move workspaces thumbnails to ViewSelector

This is now all centralized in the apps page, so move the workspaces
thumbnails to ViewSelector's apps page. This allows us to remove
all the slider controls too, since they're now unused.

The transition between showing the workspaces, and the app grid, is
based on the most recent mockups: scale and move it down, and fade it
out.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoviewSelector: Rework Ctrl+Alt+Tab support
Georges Basile Stavracas Neto [Wed, 27 Jan 2021 15:55:20 +0000 (12:55 -0300)]
viewSelector: Rework Ctrl+Alt+Tab support

Now that there's only a ACTIVITIES and a SEARCH page, the old method of handling
keyboard tabbing (extra parameters to ViewSelector._addPage()) limits what we can
do.

Manually set up the Ctrl+Alt+Tab support for each element.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoviewSelector: Merge WINDOWS and APPS pages
Georges Basile Stavracas Neto [Sat, 12 Dec 2020 15:57:15 +0000 (12:57 -0300)]
viewSelector: Merge WINDOWS and APPS pages

Add them both in a StBoxLayout subclass with a vertical layout. This
new ActivitiesContainer class already contains an adjustment controlling
the transition between workspaces and app grid states, and althought it
is internal to it, it'll be easy to integrate with gestures in the
future.

Notice that AppDisplay is added before WorkspacesDisplay. That's because
we want the paint order to paint WorkspacesDisplay on top of AppDisplay.

Switch the ViewsPage enum to call this page ACTIVITIES, and adjust the
only caller in OverviewControls to it. At last, rename '_appsPage' to
'_activitiesPage' to also reflect the name change.

The usefulness of organizing this code in pages is lost here, but this
is a transitional state, and pages will be removed in future changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoutil: Add lerp function
Georges Basile Stavracas Neto [Thu, 31 Dec 2020 17:18:42 +0000 (14:18 -0300)]
util: Add lerp function

We're going to lerp a lot in the future, to it's worthy sharing
this simple but effective interpolation function.

Add Util.lerp().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agoworkspacesView: Add API to hide workspaces without destroying
Georges Basile Stavracas Neto [Fri, 5 Jun 2020 05:23:53 +0000 (02:23 -0300)]
workspacesView: Add API to hide workspaces without destroying

This will be used by the next commit to hide workspaces when ViewSelector
switches to the search page, without destroying the workspaces so their
state is preserved.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agowindowManager: Switch to horizontal workspaces
Georges Basile Stavracas Neto [Fri, 29 May 2020 00:02:24 +0000 (21:02 -0300)]
windowManager: Switch to horizontal workspaces

Do so by removing the workspace override.

Requires https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1684

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agotheme: Make Dash background color solid
Georges Basile Stavracas Neto [Thu, 21 Jan 2021 22:02:00 +0000 (19:02 -0300)]
theme: Make Dash background color solid

This is the same color that the Dash currently has, except
it isn't transparent.

The reason for this change is that the app grid coming from
the bottom and passing below the Dash looks odd with the
transparency there.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>

5 years agodash: Add separator between favorite and running apps
Florian Müllner [Thu, 28 Jan 2021 22:24:44 +0000 (23:24 +0100)]
dash: Add separator between favorite and running apps

Only the area used by favorite apps can be used as drop targets, it
is not possible to add new favorites between the running apps at the
end. While that behavior makes sense, it is currently impossible to
distinguish the two areas with confusing results.

Address this by adding a visual separator between favorites and
running apps.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1606>

5 years agoscreenshot: Clean up when creating stream failed
Florian Müllner [Mon, 25 Jan 2021 11:12:44 +0000 (12:12 +0100)]
screenshot: Clean up when creating stream failed

Otherwise the tracked screenshot operation will block all future
requests from the same sender.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3618

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1589>

5 years agoscreenshot: Return error if stream creation failed
Florian Müllner [Mon, 25 Jan 2021 11:32:26 +0000 (12:32 +0100)]
screenshot: Return error if stream creation failed

When we fail for some reason to open a stream to write the screenshot
to, we currently return `false` to the sender. That's not wrong, but
doesn't provide any hints on what caused the failure, so return the
underlying error instead.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3618

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1589>

5 years agoscreenshot: Use separate error when disk writes are locked down
Florian Müllner [Mon, 25 Jan 2021 11:38:51 +0000 (12:38 +0100)]
screenshot: Use separate error when disk writes are locked down

The most likely reason for rejecting a screenshot request is that
there's an ongoing operation from the same sender. Still, we shouldn't
assume that that is the case and return an appropriate error when
writing to disk is disabled via lockdown settings.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3618

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1589>

5 years agologinDialog: Keep hint string from pushing the login box higher
Razze [Thu, 28 Jan 2021 19:26:54 +0000 (20:26 +0100)]
loginDialog: Keep hint string from pushing the login box higher

When we display the hint string for e.g. (or swipe finger), the login
box gets pushed up. This is leftover from older styling and should be
removed. The padding-top is unnecessary and can also be removed, so just
remove the whole line styling login-dialog-message-hint from the
stylesheet.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1582>

5 years agoworkspacesView/workspacesDisplay: Handle smooth events
Georges Basile Stavracas Neto [Fri, 8 Jan 2021 21:12:52 +0000 (18:12 -0300)]
workspacesView/workspacesDisplay: Handle smooth events

On X11, the scroll handler can receive smooth events, which should
trigger a workspace switch. Handle smooth events by checking their
scroll delta, and adjusting the direction depending on these deltas.

Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1614
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1603>

5 years agoworkspacesView/workspacesDisplay: Scroll on horizontal layouts
Georges Basile Stavracas Neto [Sat, 2 Jan 2021 20:56:57 +0000 (17:56 -0300)]
workspacesView/workspacesDisplay: Scroll on horizontal layouts

WokspacesDisplay simply remaps the scroll direction into the next
workspace, but that doesn't account for the new horizontal layout.

Scroll horizontally on horizontal layouts when scroll direction is
on the vertical axis.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1603>

5 years agoscreenshot: Still remove select/pick actor if grab promise was rejected
Sebastian Keller [Wed, 27 Jan 2021 22:27:31 +0000 (23:27 +0100)]
screenshot: Still remove select/pick actor if grab promise was rejected

If the grab promise is rejected due to for example on X another app
already having the grab, an error is thrown and the code that would
revert the cursor and hide the actor is not run. This actor then
prevents all mouse interactions with the shell and the windows beneath
it.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2869

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1600>

5 years agoworkspacesView: Fix off-by-one error
Florian Müllner [Fri, 8 Jan 2021 01:14:42 +0000 (02:14 +0100)]
workspacesView: Fix off-by-one error

The scroll adjustment's upper value corresponds to the number of
workspaces, not to the last workspace index. We want the latter
when mirroring the layout in RTL locales, so subtract 1.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1598>

5 years agoci: Fix typo
Robert Mader [Tue, 26 Jan 2021 20:37:43 +0000 (21:37 +0100)]
ci: Fix typo

This made us fall back to a normal debug build, not catching certain
warnings.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1597>

5 years agoblur-effect: Silence compiler warning
Robert Mader [Tue, 26 Jan 2021 20:25:47 +0000 (21:25 +0100)]
blur-effect: Silence compiler warning

Building with `debugoptimized` throws:
`'paint_opacity' may be used uninitialized in this function`

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1596>

5 years agoextensionSystem: Fix opening Extensions app from notification
Florian Müllner [Tue, 26 Jan 2021 16:12:04 +0000 (17:12 +0100)]
extensionSystem: Fix opening Extensions app from notification

Launching the app is implemented by the source's open() method, but
only external notifications are hooked up to call into the source
when no default action was provided.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1595>

5 years agopanel: Remove drop down arrows from standalone indicators
Doan Nam Long Vu [Sun, 24 Jan 2021 20:39:43 +0000 (21:39 +0100)]
panel: Remove drop down arrows from standalone indicators

The keyboard/language selector area is the smallest element
on the panel. Additional margin about 6px inside the a11y
and language items to make them comfortable to click targets.

With that, we can remove the remaining arrows.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3567

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1583>

5 years agopanel: Remove drop down arrows from AppMenu and AggregateMenu
Doan Nam Long Vu [Fri, 22 Jan 2021 08:59:46 +0000 (09:59 +0100)]
panel: Remove drop down arrows from AppMenu and AggregateMenu

Following #3567, the design team decided to remove the drop down arrows
from both AppMenu and AggregateMenu.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3567

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1583>

5 years agoappDisplay: Handle dropped app favorites
Florian Müllner [Tue, 26 Jan 2021 10:33:54 +0000 (11:33 +0100)]
appDisplay: Handle dropped app favorites

Now that apps either appear in the dash or the app grid, it makes
sense to allow DND between the two components to add and remove
favorites.

Currently this only works for adding items to the dash, update the
app grid code to also accept drops from the dash.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1594>

5 years agodash: Replace custom actor with layout manager
Florian Müllner [Tue, 19 Jan 2021 16:34:19 +0000 (17:34 +0100)]
dash: Replace custom actor with layout manager

We use a custom actor to make sure that the show-apps button remains
visible even when there's not enough space to show all icons.

We can achieve the same result with much less code, by using a custom
BoxLayout layout manager for the icons to override the minimum width.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1592>

5 years agodbusServices/screencast: Use GTK4
Florian Müllner [Wed, 20 Jan 2021 01:48:24 +0000 (02:48 +0100)]
dbusServices/screencast: Use GTK4

The separate screencast service has some minimal GTK usage, which
we can trivially move to GTK4.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1591>

5 years agoappDisplay/appFolderDialog: Don't constrain to workarea
Georges Basile Stavracas Neto [Mon, 25 Jan 2021 16:08:56 +0000 (13:08 -0300)]
appDisplay/appFolderDialog: Don't constrain to workarea

With the transparent top bar in the overview, constraining to the
primary monitor's workarea causes the (now visible) area beneath
the top bar to not have the darker background, which causes a visual
discontinuity in the layout.

Don't constrain to the primary monitor workarea.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1590>

5 years agoshell/util: Don't compile in unused code when !HAVE_SYSTEMD
Daniel van Vugt [Mon, 25 Jan 2021 09:01:29 +0000 (17:01 +0800)]
shell/util: Don't compile in unused code when !HAVE_SYSTEMD

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3620
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1588>

5 years agoworkspacesView: Center workspaces of primary display
Georges Basile Stavracas Neto [Fri, 11 Dec 2020 18:57:49 +0000 (15:57 -0300)]
workspacesView: Center workspaces of primary display

Currently workspaces are left-aligned to the allocation, which looks
odd after moving the Dash to the bottom.

Allocate workspaces centered both horizontally and vertically.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1587>

5 years agoappDisplay: Animate opening app icons menu
Razze [Sat, 23 Jan 2021 19:44:11 +0000 (20:44 +0100)]
appDisplay: Animate opening app icons menu

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2335

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1585>

5 years agoUpdate Persian translation
Danial Behzadi [Fri, 22 Jan 2021 14:36:51 +0000 (14:36 +0000)]
Update Persian translation

5 years agoappDisplay: Fix app folder icon subicon spacing
Sebastian Keller [Wed, 20 Jan 2021 01:03:49 +0000 (02:03 +0100)]
appDisplay: Fix app folder icon subicon spacing

The code previously was using CSS to define row/column spacing and
padding which was combined with a subicon size computed in code relative
to the requested icon size.

In smaller icon sizes it was possible for the CSS spacing+padding + the
size of the two subicons to exceed the requested icon size. This then
would lead to the label being pushed down for app folders compared to
other icons.

Another more severe issue caused by this would happen if the first item
in an icon grid was an app folder. Then the calculation for the maximum
allowed icon size could be off, leading to all icons in the grid
becoming smaller than actually necessary.

This commit changes this to use homogeneous row and column layouts to
evenly distribute the remaining spacing instead of using a fixed CSS
value.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3069

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1581>

5 years agoappDisplay: Do not duplicate app favorites
Florian Müllner [Wed, 20 Jan 2021 00:44:21 +0000 (01:44 +0100)]
appDisplay: Do not duplicate app favorites

With the new position, the dash is now stronger connected to the
app grid than it used to; reflect that by showing apps either
in the grid or the dash, not both (except for non-favorite
running apps).

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/88

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1580>

5 years agoworkspacesView: Disable swipe tracker when animating from overview
Sebastian Keller [Wed, 13 Jan 2021 22:24:49 +0000 (23:24 +0100)]
workspacesView: Disable swipe tracker when animating from overview

It was possible to switch workspaces by quickly dragging the workspace
immediately after clicking on a window during the transition from the
overview. This is unlikely something that is intentionally used but can
be confusing and look bad when triggered accidentally.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2993

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1578>

5 years agooverviewControls: Make sure dash is positioned at the bottom
Florian Müllner [Tue, 19 Jan 2021 17:20:58 +0000 (18:20 +0100)]
overviewControls: Make sure dash is positioned at the bottom

We don't want the dash to expand, but if it's given more space
than requested, we want it to be positioned at the bottom.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1577>

5 years agoautomountManager: Remove unused volume queue
Sebastian Keller [Tue, 19 Jan 2021 20:12:49 +0000 (21:12 +0100)]
automountManager: Remove unused volume queue

This is some leftover from code that was used to keep track of volumes
added/removed while the screen was locked before the move to a
components system in 2a800e4c. All that the remaining code does is
filter devices from an empty list.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1579>

5 years agoUpdate Hungarian translation
Balázs Úr [Tue, 19 Jan 2021 20:40:42 +0000 (20:40 +0000)]
Update Hungarian translation

5 years agooverviewControls: Simplify dash placement
Florian Müllner [Mon, 18 Jan 2021 23:57:30 +0000 (00:57 +0100)]
overviewControls: Simplify dash placement

Now that the dash is always visible, it doesn't make sense to keep
it in a separate layer from the main overview group and use a
separate spacer actor as a placeholder.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1575>

5 years agotheme: Theme dash closer to mockup
Jakub Steiner [Tue, 5 Jan 2021 12:57:25 +0000 (13:57 +0100)]
theme: Theme dash closer to mockup

- use a light, nostroke dash
- boost border radius globally

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1559>

5 years agodash/dashIcon: Popup menu above the icon
Georges Basile Stavracas Neto [Thu, 7 Jan 2021 13:05:18 +0000 (10:05 -0300)]
dash/dashIcon: Popup menu above the icon

Now that the Dash is horizontal, the popup menu of the Dash icons must
show up, instead of left/right.

Make AppIcon.popupMenu() receive an optional parameter with the side
to show the menu, using St.Side.LEFT as default. Override this method
in DashIcon to always pass St.Side.TOP.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1559>

5 years agodash: Fix 'All apps' button position in RTL locales
Abderrahim Kitouni [Sat, 16 Jan 2021 17:45:07 +0000 (18:45 +0100)]
dash: Fix 'All apps' button position in RTL locales

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1559>

5 years agoMake Dash horizontal
Georges Basile Stavracas Neto [Fri, 11 Dec 2020 12:47:28 +0000 (09:47 -0300)]
Make Dash horizontal

And move it to the bottom of the overview. Change the height-based calculation
of the icon sizes to be width-based. Put the DashFader in a vertical box, and
make all corners of the Dash equally rounded.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1559>

5 years agooverviewControls: Split FaderControl from SlidingControl
Georges Basile Stavracas Neto [Fri, 11 Dec 2020 12:44:53 +0000 (09:44 -0300)]
overviewControls: Split FaderControl from SlidingControl

The Dash will need only the fading aspect of SlidingControl in the
next commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1559>

5 years agooverviewControls: Show DashSpacer in apps page as well
Georges Basile Stavracas Neto [Thu, 10 Dec 2020 20:35:09 +0000 (17:35 -0300)]
overviewControls: Show DashSpacer in apps page as well

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1559>

5 years agoPost-release version bump (again)
Florian Müllner [Mon, 18 Jan 2021 16:46:04 +0000 (17:46 +0100)]
Post-release version bump (again)

5 years agoTag release 40.alpha.1.1
Florian Müllner [Mon, 18 Jan 2021 16:33:05 +0000 (17:33 +0100)]
Tag release 40.alpha.1.1

Like the mutter 40.alpha.1.1 release, we missed adjusting to a
GSettings schema move from g-s-d to gsettings-desktop-schemas,
resulting in an abort on startup with the latest released
gnome-settings-daemon.

5 years agoextensionsService: Fix setting prefs dialog parent
Florian Müllner [Sat, 16 Jan 2021 00:43:53 +0000 (01:43 +0100)]
extensionsService: Fix setting prefs dialog parent

Between the GTK4 port and the latest GTK4 version, calling realize()
on a newly created window to force its surface to be created stopped
working.

So instead, wait for the window to get realized regularly to set its
parent.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1574>

5 years agoUpdate Friulian translation
Fabio Tomat [Sun, 17 Jan 2021 13:39:09 +0000 (13:39 +0000)]
Update Friulian translation

5 years agoUpdated Czech translation
Marek Černocký [Sat, 16 Jan 2021 09:47:57 +0000 (10:47 +0100)]
Updated Czech translation

5 years agost/settings: Adjust to moved GSettings schema
Florian Müllner [Fri, 15 Jan 2021 16:42:20 +0000 (17:42 +0100)]
st/settings: Adjust to moved GSettings schema

Mouse settings moved from gnome-settings-daemon to
gsettings-desktop-schemas, and we missed adjusting
the shell side.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1573>

5 years agoUpdated Czech translation
Marek Černocký [Fri, 15 Jan 2021 11:48:50 +0000 (12:48 +0100)]
Updated Czech translation

5 years agoUpdate Serbian translation
Марко Костић [Fri, 15 Jan 2021 01:21:52 +0000 (01:21 +0000)]
Update Serbian translation

5 years agoweather: Pass providers after application-id and contact-info
Georges Basile Stavracas Neto [Thu, 14 Jan 2021 19:47:52 +0000 (16:47 -0300)]
weather: Pass providers after application-id and contact-info

It now requires both application-id and contact-info to properly
set the enabled providers.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1571>

5 years agoPost-release version bump
Florian Müllner [Thu, 14 Jan 2021 17:33:47 +0000 (18:33 +0100)]
Post-release version bump

5 years agoTag version 40.alpha.1
Florian Müllner [Thu, 14 Jan 2021 16:04:01 +0000 (17:04 +0100)]
Tag version 40.alpha.1

Update NEWS.

5 years agost/scroll-view-fade: Don't assume fade area at (0,0)
Florian Müllner [Thu, 14 Jan 2021 15:58:20 +0000 (16:58 +0100)]
st/scroll-view-fade: Don't assume fade area at (0,0)

The shader code currently only accounts for padding for the
bottom and right fades, but not for top and left.

As a result, we only fade the right edge when swiping through app
picker pages, whoops.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1569>

5 years agoci: Bump mutter image
Florian Müllner [Thu, 14 Jan 2021 16:10:38 +0000 (17:10 +0100)]
ci: Bump mutter image

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1570>

5 years agoPort extensions app and portal to GTK4
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
Port extensions app and portal to GTK4

With the previous preparations in place, it is time to take the plunge.

As both the app and the portal use the same small library for handling
external windows, port everything at once to avoid the hassle of building
and installing two versions of the library.

With the portal using GTK4 now, all extensions must port their preference
widgets as well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Remove event box
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
dbusServices/extensions: Remove event box

In GTK4, all widgets are reactive, and therefore GtkEventBox has
been removed. In order to make the upcoming GTK4 port a bit cleaner,
remove the expander's event box now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Stop stacking frames
Florian Müllner [Fri, 13 Nov 2020 01:36:08 +0000 (02:36 +0100)]
dbusServices/extensions: Stop stacking frames

We currently use separate frames for the details expander and the
expanded details. That layout works as long as frames are boxy (as
in the default GTK3 style), but breaks down with rounded corners
(as in the default GTK4 style).

In order to work with either style, adapt the layout to use a single
surrounding frame and appropriate borders as separator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Stop using GtkToolbar
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
dbusServices/extensions: Stop using GtkToolbar

Toolbars have been removed from GTK4, so just use a regular GtkBox
for the error details bottom bar.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Stop using GtkContainer API
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
dbusServices/extensions: Stop using GtkContainer API

The interface has been removed in GTK4, so use widget-specific API
for adding children where possible.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Stop using :margin shortcut
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
dbusServices/extensions: Stop using :margin shortcut

The property has been removed in GTK4, so prepare for a port by
setting the four individual margin properties instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Use consistent style for property names
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
dbusServices/extensions: Use consistent style for property names

GtkBuilder understands both dashes and underscores in property names,
and we currently use a mix of both. The actual properties use dashes,
so settle on that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Set title on window instead of headerbar
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
dbusServices/extensions: Set title on window instead of headerbar

GTK4 will remove the GtkHeaderBar:title property, so stop using it
and set the window's title property instead, as that's what headbars
use in both GTK3 and GTK4 unless explicitly overridden.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agodbusServices/extensions: Minor cleanup
Florian Müllner [Fri, 13 Nov 2020 04:06:19 +0000 (05:06 +0100)]
dbusServices/extensions: Minor cleanup

There's little point in setting properties to their default value,
so stop doing that.

(GtkFrame:shadow-type actually defaults to "edged-in" rather than "in",
but all types other than "none" are treated the same nowadays)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agoextensions-app: Explicitly dispose window when removed
Florian Müllner [Wed, 18 Nov 2020 01:16:26 +0000 (02:16 +0100)]
extensions-app: Explicitly dispose window when removed

Unlike in previous GTK version (or Clutter), destroy() no longer
breaks reference cycles but just releases the reference held by
GTK itself.

So any reference we hold - either the explicit property or any signal
handlers that bind the window as `this` - prevents the window from
being disposed when closed, and the application won't quit.

Work around this by explicitly running dispose() on the window when
it is removed from the application.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agoextensions-app: Stop using :margin shortcut
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
extensions-app: Stop using :margin shortcut

The property has been removed in GTK4, so prepare for a port by
setting the four individual margin properties instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agoextensions-app: Don't use deprecated margin-left/right properties
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
extensions-app: Don't use deprecated margin-left/right properties

Use the text-direction-aware start/end variants instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agoextensions-app: Use consistent style for property names
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
extensions-app: Use consistent style for property names

GtkBuilder understands both dashes and underscores in property names,
and we currently use a mix of both. The actual properties use dashes,
so settle on that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agoextensions-app: Set title on window instead of headerbar
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
extensions-app: Set title on window instead of headerbar

GTK4 will remove the GtkHeaderBar:title property, so stop using it
and set the window's title property instead, as that's what headbars
use in both GTK3 and GTK4 unless explicitly overridden.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agoextensions-app: Remove stray angle brackets
Florian Müllner [Fri, 13 Nov 2020 03:47:29 +0000 (04:47 +0100)]
extensions-app: Remove stray angle brackets

Not sure how those sneaked in. GtkBuilder apparently ignores them,
but that's no reason for keeping them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agoshew: Use Xlib to set transient hint
Florian Müllner [Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)]
shew: Use Xlib to set transient hint

The GDK API for setting the hint has been removed in GDK4, so prepare
for a port by using the underlying Xlib API directly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

5 years agostatus/volume: Allow changing input volume by scrolling
Razze [Wed, 13 Jan 2021 21:56:04 +0000 (22:56 +0100)]
status/volume: Allow changing input volume by scrolling

Previously scrolling on the volume or input indicator would always
change the volume. This change lets you change the input volume if
you scroll over the input indicator.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3273

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1566>

5 years agopanel: Make the panel fully transparent while in the overview
Jonas Dreßler [Thu, 6 Aug 2020 18:58:44 +0000 (20:58 +0200)]
panel: Make the panel fully transparent while in the overview

The overview is using a heavily darkened background image nowadays.
Since the contrast provided by this is always good enough, this makes it
possible to always have a fully transparent panel while showing the
overview.

So change the theme to always make the panel fully transparent while the
overview is shown. The duration of the animation for that is 250ms
because that's the duration of the show and hide animation of the
overview.

Also add special handling for the high-contrast theme, where we always
make the panel opaque.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1397>

5 years agooverview: Increase SHADE_ANIMATION_TIME a bit
Jonas Dreßler [Thu, 6 Aug 2020 18:50:09 +0000 (20:50 +0200)]
overview: Increase SHADE_ANIMATION_TIME a bit

The SHADE_ANIMATION_TIME variable sets the duration of the animation of
the background shading that is done when showing the overview. As
explained in the code-comment, that value must be smaller than the
animation time of the overview.

Now since we're going to start animating the background color of the
panel when showing the overview and we're going to use the overviews
animation time for that, we want to make sure the shading of the
background image and the animation of the panel are kept "in sync",
otherwise the transitions would look bad.

So slightly increase the value of SHADE_ANIMATION_TIME to 240 (the
overviews animation time is 250) to make sure those happen in the same
timeframe.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1397>

5 years agopanel: Animate opacity changes of the panel corner
Jonas Dreßler [Mon, 11 Feb 2019 22:05:31 +0000 (23:05 +0100)]
panel: Animate opacity changes of the panel corner

This is a requirement for fading the transparent panel in and out
smoothly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1397>

5 years agopanel: Indicate focus using a pill-shaped background
Jonas Dreßler [Tue, 4 Aug 2020 11:47:59 +0000 (13:47 +0200)]
panel: Indicate focus using a pill-shaped background

The current way of indicating focus of elements in the panel does not
work very well with a fully-transparent panel, a line at the bottom of
the panel doesn't make too much sense if there is no real panel, but
only the text and icons.

To make the indicators look better in this case, switch to a pill-shaped
background color to indicate the focus of items in the panel.

For this to look good, there has to be a small black border above and
below the background, this also requires increasing the height of the
panel (from 1.86em to 2.2em) for visual purposes.

Also, since we now no longer need to color the lower bottom of the
panel, we can remove the custom drawing code for the border of the
panels corner, so do that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1397>

5 years agotheme/panel: Slightly increase horizontal padding on activities button
Jonas Dreßler [Tue, 4 Aug 2020 09:47:18 +0000 (11:47 +0200)]
theme/panel: Slightly increase horizontal padding on activities button

The activities button doesn't have an icon, which makes its horizontal
padding appear a bit smaller than the padding of most other items in the
panel.

We're going to indicate hover and focus of items in the panel using a
pill-shaped background color, which means the padding of those items
will get more visible. So give the activities button a special treatment
and slightly increase its padding to make sure the new indicator will
look good.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1397>

5 years agoworkspace: Don't unfreeze layout during overview animation
Ivan Molodetskikh [Sun, 27 Dec 2020 17:39:22 +0000 (20:39 +0300)]
workspace: Don't unfreeze layout during overview animation

During overview closing animation the allocation expands more or less
every frame. Unfreezing the layout then leads to windows snapping to
their new position if e.g. a window was closed which doesn't look nice.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3216

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1550>

5 years agoUpdate Slovenian translation
Matej Urbančič [Wed, 13 Jan 2021 21:22:35 +0000 (21:22 +0000)]
Update Slovenian translation

5 years agologinDialog: Make notListedButton accessible
Mike Gerow [Wed, 13 Jan 2021 20:29:35 +0000 (12:29 -0800)]
loginDialog: Make notListedButton accessible

Without this a screen reader just calls the notListedButton a
"push button" instead of also including the "Not listed?" text.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1567>

5 years agoweather: Provide application-id and contact-info
Florian Müllner [Tue, 12 Jan 2021 16:31:15 +0000 (17:31 +0100)]
weather: Provide application-id and contact-info

Those are now required in order to use any online providers.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3577

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1565>

5 years agoweather: Adjust to renamed provider
Florian Müllner [Tue, 12 Jan 2021 16:30:16 +0000 (17:30 +0100)]
weather: Adjust to renamed provider

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3577

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1565>

5 years agoRevert "WeatherClient: Set enabled providers after setting a valid location"
Florian Müllner [Tue, 12 Jan 2021 17:33:43 +0000 (18:33 +0100)]
Revert "WeatherClient: Set enabled providers after setting a valid location"

libgweather changed to not do any implicit network traffic in property setters,
so this is again safe to pass to the constructor.

This reverts commit 73b7d9ace463fd29a0bd7f315f1d87068c033062.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3577

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1565>

5 years agoUpdate Romanian translation
Daniel Șerbănescu [Wed, 13 Jan 2021 16:17:43 +0000 (16:17 +0000)]
Update Romanian translation